<!-- saved from url=(0063)chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/export.html -->
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="CACHE-CONTROL" content="no-cache">
    <link rel="stylesheet" type="text/css" href="./stylesheets/base.css">
    <title>导出</title>
    <style>
        table {
            width: 80%;
            margin: 0 auto;
        }

        table thead {
            font-weight: bold;
            color: #0c91e5;
        }

        table tr td {
            line-height: 40px;
        }

        table tr td a {
            text-decoration: underline !important;
            color: red;
        }
    </style>
</head>

<body>
<table>
    <thead class="tab-header">
    </thead>
    <tbody class="tab-body">

    </tbody>
</table>
<script src="js/jquery-1.8.3.min.js"></script>
<script>
    $(function () {
        $.ajax({
            url: "./data/extra.html",
            dataType: "html",
            success: function (html) {
                var _html = html.replace(/<pre>/ig, "");
                var _htmlArray = _html.split("<br>");
                var _headerHtml = "", _bodyHtml = "";
                $.each(_htmlArray, function (index, item) {
                    var _trimItem = item.trim().split(",");
                    if (index === 0) {
                        _headerHtml += "<tr>";
                        $.each(_trimItem, function (hi, hitem) {
                            if (hi !== 0 && hi !== 3 && hi !== 5 && hi !== 6)
                                _headerHtml += "<td>" + hitem + "</td>";
                        });
                        _headerHtml += "</tr>";
                    } else {
                        _bodyHtml += "<tr>";
                        $.each(_trimItem, function (bi, bitem) {
                            if (bi !== 0 && bi !== 3 && bi !== 5 && bi !== 6) {
                                if (bi === 4) {
                                    _bodyHtml += "<td><a href='" + bitem + "'>" + bitem + "</a></td>";
                                } else {
                                    _bodyHtml += "<td>" + bitem + "</td>";
                                }
                            }
                        });
                        _bodyHtml += "<tr>";
                    }
                });
                $(".tab-header").append(_headerHtml);
                $(".tab-body").append(_bodyHtml);
            }
        });
    })
</script>
</body>

</html>
